package mm.test;

import org.springframework.jdbc.core.JdbcTemplate;

import mm.core.DataBase;
import mm.http.SystemListener;

import junit.framework.TestCase;

public abstract class BaseTestCase extends TestCase {
	
	public BaseTestCase(){
		super();
		new SystemListener(null);
	}

	protected void setUp() throws Exception {
		super.setUp();
	}

	protected void tearDown() throws Exception {
		super.tearDown();
	}

	protected static void execSQL(String[] queries) {
		if(queries==null||queries.length<1)
			return;
		JdbcTemplate jdbcTemplate = DataBase.getJdbcTemplate();
		for(String query : queries){
			jdbcTemplate.update(query);
		}
	}

}
